$(function () {
    tinymce.init({
        selector: '#mytextarea',
        language: 'zh_CN',
        browser_spellcheck: true,
        contextmenu: false,

        //设置文本框不能被拖动
        resize: false,


        width: 800,
        height: 400,

        //这行是用来设置文字方向的，从左到右
        directionality: 'ltr',
        plugins: [
            "advlist autolink lists link image charmap print preview anchor",
            "searchreplace visualblocks code fullscreen",
            "insertdatetime media table contextmenu paste imagetools wordcount",
            "code"
        ],
        toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify| bullist numlist outdent indent | link image | code",

    });

    jeDate("#indate", {
        format: "YYYY-MM-DD",
        isTime: false,
        festival: true,
        theme: { bgcolor: "#00A680", pnColor: "#00DDAA" },//绿色主题
        minDate: "2014-09-19 00:00:00"
    })
})